package cn.sofwin.day0119;
public class Test01 {
    public static void stringReplace (String text) {
        text = text.replace ('j' , 'i');
    }

    public static void bufferReplace (StringBuffer text) {
        text.append ("C");
        text=new StringBuffer("Hello");
        text.append("World!");
    }

    public static void main (String args[]) {
        String textString = new String ("java");
        StringBuffer textBuffer = new StringBuffer ("java");
        stringReplace (textString);
        bufferReplace (textBuffer);
        System.out.println (textString + textBuffer);
    }
}
